package indi.kider.server.apartment.mapper;

import indi.kider.common.model.apartment.Houses;
import indi.kider.common.model.apartment.HousesMsg;
import indi.kider.server.apartment.model.HousesCommunityQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface HousesMapper extends Mapper<Houses> {

    Integer selectHouseIdHasUsed(@Param("houseId") Long houseId);

    Integer selectHouseIdHasUsedMeter(@Param("houseId") Long houseId);

    HousesMsg selectHouseMsgByHousesId(@Param("houseId") Long houseId);

    List<Houses> getHouseRentList(HousesCommunityQuery houseRent);

    Integer selectCommunityHousesSize(@Param("communityId") Long communityId);

    List<HousesMsg> selectHouseMsgByEnterprise(@Param("phone") String phone);

    Houses queryPowerMeterAndWaterMeterByTenantId(@Param("tenantId") Long tenantId);

    List<String> verifyTheDeviceIsUsed(@Param("meterType") Integer meterType, @Param("meters") List<String> meters);

    List<Houses> getPendingReservation(@Param("enterpriseId") Long enterpriseId,@Param("sex")Integer sex,@Param("communityId")Long communityId);
}